|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.justhis.jdo.JDOUtil
????Java Data Object????????
Method Summary | |
static void |
createObject(javax.jdo.PersistenceManager pm,
java.lang.Object obj)
create a persistence object into database by PersistenceManager. |
static void |
createObject(javax.jdo.Transaction transaction,
java.lang.Object obj)
create a persistence object by transaction, through createObject(pm,obj) to persistence object in fact. |
static void |
deleteObject(javax.jdo.PersistenceManager pm,
java.lang.Class clazz,
java.lang.String objId)
delete object from Persistence Manager . |
static void |
deleteObject(javax.jdo.Transaction transaction,
java.lang.Class clazz,
java.lang.String objId)
delete JDO object from persistence manager |
static java.lang.Object |
findObjectById(javax.jdo.PersistenceManager pm,
java.lang.Class clazz,
java.lang.String id)
search JDO Object from persistence manager by JDO object ID . |
static java.lang.Object |
findObjectById(javax.jdo.Transaction transaction,
java.lang.Class clazz,
java.lang.String objId)
search JDO object from persistence manager by JDO transaction. |
static java.util.Collection |
findObjList(javax.jdo.PersistenceManager pm,
java.lang.Class cs)
find a jdo object list by class name. |
static java.util.Collection |
findObjList(javax.jdo.PersistenceManager pm,
java.lang.Class cs,
java.lang.String order)
find jdo object list ordered |
static java.util.Collection |
findObjList(javax.jdo.PersistenceManager pm,
java.lang.Class cs,
java.lang.String order,
java.lang.String filter)
find collection of java data object list by filter and order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void createObject(javax.jdo.PersistenceManager pm, java.lang.Object obj)
pm
- a persistence managerobj
- needed persistence objectpublic static void createObject(javax.jdo.Transaction transaction, java.lang.Object obj)
createObject(pm,obj)
to persistence object in fact.
transaction
- database transactionobj
- needed persistence objectcreateObject(javax.jdo.PersistenceManager,java.lang.Object)
public static void deleteObject(javax.jdo.PersistenceManager pm, java.lang.Class clazz, java.lang.String objId) throws UtilException
pm
- JDO persistence Manager.clazz
- a class name.objId
- persistence object id.
UtilException
- if delete from persistence manager occur any
error.public static void deleteObject(javax.jdo.Transaction transaction, java.lang.Class clazz, java.lang.String objId) throws UtilException
transaction
- JDO transactionclazz
- an object class nameobjId
- JDO object id.
UtilException
- occur any error.public static java.util.Collection findObjList(javax.jdo.PersistenceManager pm, java.lang.Class cs) throws UtilException
pm
- persistence managercs
- class name
UtilException
- if any exception occurspublic static java.util.Collection findObjList(javax.jdo.PersistenceManager pm, java.lang.Class cs, java.lang.String order) throws UtilException
pm
- persistence managercs
- class nameorder
- order name
UtilException
- if any exception occurs.public static java.util.Collection findObjList(javax.jdo.PersistenceManager pm, java.lang.Class cs, java.lang.String order, java.lang.String filter) throws UtilException
pm
- persistence managercs
- JDO object class nameorder
- order namefilter
- filter expression
UtilException
- if any exception occurs.public static java.lang.Object findObjectById(javax.jdo.Transaction transaction, java.lang.Class clazz, java.lang.String objId) throws UtilException
transaction
- JDO transactionclazz
- a JDO object class nameobjId
- a JDO object id string
UtilException
- if occur any error.public static java.lang.Object findObjectById(javax.jdo.PersistenceManager pm, java.lang.Class clazz, java.lang.String id) throws UtilException
pm
- persistence managerclazz
- JDO object class nameid
- a string of jdo object id
UtilException
- if any exception occur
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |